package com.sunjob.mrotech.server;

import com.sunjob.common.domain.tech.RepairProcess2;
import com.sunjob.common.domain.tech.RepairProcess2DO;
import com.sunjob.common.domain.tech.TransShape2;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : xiaozhoutongxue
 * @date : 2022/8/8 11:01
 */
@Service
public interface RepairProcess2Server {
    /** 获得拥有修程工艺的前几个二级构型 */
    List<TransShape2> getRepairProcess2ByLimit3();

    /** 根据二级id获得二级修程工艺*/
    RepairProcess2 getRepairProcess2ByShape2Id(Long shape2Id);

    /** 新增修程工艺*/
    String insertRepairProcess2(RepairProcess2 repairProcess2);

    /** 绑定修程工艺通过构型id*/
    Boolean bindRepairProcessByShape2Id(Long shape2Id,Long repairProcess2Id);

    /** 根据二级id删除一个二级修程工艺*/
    String deleteRepairProcess2ById(Long repairProcess2Id);

    /** 更新一个二级修程工艺(小修改：不涉及到步骤改动)*/
    Boolean uptateRepairProcess2Small(RepairProcess2DO repairProcess2DO);

    /**更新一个二级修程工艺(大修改：涉及到步骤改动，更新版本号)*/
    Boolean uptateRepairProcess2Big(RepairProcess2 repairProcess2);
}

